]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: drop dead code
authorRay Strode <rstrode@redhat.com>
Sat, 17 Sep 2011 16:36:49 +0000 (12:36 -0400)
committerRay Strode <rstrode@redhat.com>
Sun, 18 Sep 2011 03:23:15 +0000 (23:23 -0400)
The _userMenu variable never gets initialized anymore,
so remove some code that only gets run when it's defined.

https://bugzilla.gnome.org/show_bug.cgi?id=651299

js/ui/panel.js

index 3976025bb29ac825869525fba1118485d36df5c0..b4f18efa53beaf455993f6b7f9689f6e15a060ee 100644 (file)
@@ -1054,11 +1054,6 @@ Panel.prototype = {
             let indicator = new constructor();
             this.addToStatusArea(role, indicator, i);
         }
-
-        // PopupMenuManager depends on menus being added in order for
-        // keyboard navigation
-        if (this._userMenu)
-            this._menus.addMenu(this._userMenu.menu);
     },
 
     _insertStatusItem: function(actor, position) {